load("@io_bazel_rules_go//go:def.bzl", "go_library")

genrule(
    name = "genassets",
    srcs = ["//pkg/ui/workspaces/db-console:db-console-oss"],
    outs = ["assets.tar.zst"],
    cmd = """$(location //pkg/util/assetbundle/gen) $@ $(SRCS)""",
    tools = ["//pkg/util/assetbundle/gen"],
    visibility = ["//pkg/gen:__subpackages__"],
)

go_library(
    name = "distoss",
    srcs = ["distoss.go"],
    embedsrcs = [":genassets"],  # keep
    importpath = "github.com/cockroachdb/cockroach/pkg/ui/distoss",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/ui",
        "//pkg/util/assetbundle",
    ],
)
